package ooday01;
//汽车测试
public class CarTest {
    public static void main(String[] args) {
        Car car1 = new Car();
        car1.brand = "法拉利";
        car1.color = "白色";
        car1.price = 100.0;
        car1.start();
        car1.run();
        car1.stop();


        Car car2 = new Car("奔驰大G","黑色",450.0);
        car2.start();
        car2.run();
        car2.stop();

        Car car3 = new Car("保时捷","红色",280.0);
        car3.start();
        car3.run();
        car3.stop();
    }
}
